package cn.fjsay.java.demo5;

public class Test {
    public static void main(String[] args) {
        Phone p = new Phone();
        SimCard m = new CuSimCard();
        m.setNumber("1825678956");
        p.changeSimCard(m);
        p.makeCall();

        SimCard cu = new CuSimCard();
        cu.setNumber("13256891478");
        p.changeSimCard(cu);
        p.makeCall();
    }
}
